/*
 * Copyright (C) 2021  FunGuide, Inc. All Rights Reserved.
 */


package com.yxw.springcloud.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yxw.springcloud.mapper.PaymentMapper;
import com.yxw.springcloud.model.Payment;
import org.springframework.stereotype.Service;


/**
 * Simple to Introduction
 * className: PaymentServiceImpl
 *
 * @author yanxw
 * @version 2021/4/28 8:45
 */

@Service
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements PaymentService {

    @Override
    public int create(Payment payment) {
        return baseMapper.insert(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return baseMapper.selectById(id);
    }
}
